package cn.zkrt.iotms.module.iot.service;

import cn.zkrt.iotms.module.iot.dto.DeviceBPageDto;
import cn.zkrt.iotms.module.iot.entity.DeviceB;
import cn.zkrt.iotms.module.iot.vo.*;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * 设备(DeviceB)表服务接口
 *
 * @author xulinyu
 * @since 2024-10-06 16:26:30
 */
public interface DeviceBService extends IService<DeviceB>{
    Page<DeviceBVO> queryByPage(Page<DeviceBVO> page, String deviceName);

    Boolean add(DeviceB deviceB);

    Boolean deleteByIds(List<Long> idList);

    Boolean edit(DeviceB deviceB);

    DeviceCategoryTotalVO categoryTotal(String stcd);

    Boolean dynamicBinding(String deviceId, String parentId);

    Page<DeviceBPageVO> sfsPage(Page<DeviceBPageVO> page, DeviceBPageDto dto);

    List<UnbindDeviceVO> unbindList(String stcd);

    Boolean unbind(String deviceId);

    BindingDeviceVO bindingList(String stcd);
}
